package com.example.demo;

import com.example.demo.entity.PersonService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.support.ClassPathXmlApplicationContext;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
//        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("BeanDefine.xml");
//        PersonService bean = (PersonService)classPathXmlApplicationContext.getBean("personService");
//        System.out.println(bean.getName1());
//        System.out.println(bean.getAge1());
    }

}
